//package cn.fan.springboot_easyexcle.importdemo;
//
//
//import com.alibaba.fastjson.JSONObject;
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//import com.github.pagehelper.PageHelper;
//import com.github.pagehelper.PageInfo;
//import com.hthl.api.basic.serial.SerialControllerApi;
//import com.hthl.api.facility.facility.FacilityControllerApi;
//import com.hthl.context.LoginContextHolder;
//import com.hthl.equip.dao.EquipMapper;
//import com.hthl.equip.service.EquipGroupService;
//import com.hthl.equip.service.EquipParameterService;
//import com.hthl.equip.service.EquipService;
//import com.hthl.equip.thread.EquipImportExecutor;
//import com.hthl.framework.domain.basic.serial.constant.SerialModelConstant;
//import com.hthl.framework.domain.equips.equip.*;
//import com.hthl.framework.domain.equips.equip.vo.*;
//import com.hthl.framework.domain.facility.facility.vo.SynEquipCenterVo;
//import com.hthl.framework.domain.product.mongo.ProductMongoData;
//import com.hthl.framework.domain.product.mongo.ProductUrl;
//import com.hthl.framework.domain.product.product.vo.ProductParameterVo;
//import com.hthl.framework.domain.ucenter.Principal;
//import com.hthl.framework.model.response.ResponseResult;
//import com.hthl.framework.utils.BeanCopierUtils;
//import com.hthl.framework.utils.OnlyIdUtils;
//import com.hthl.framework.utils.QRCodeUtil;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.commons.collections.MapUtils;
//import org.apache.commons.lang3.StringUtils;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Qualifier;
//import org.springframework.data.mongodb.core.MongoTemplate;
//import org.springframework.data.mongodb.core.query.Criteria;
//import org.springframework.data.mongodb.core.query.Query;
//import org.springframework.data.mongodb.core.query.Update;
//import org.springframework.stereotype.Service;
//import org.springframework.util.Assert;
//import org.springframework.util.CollectionUtils;
//import org.springframework.web.multipart.MultipartFile;
//import utils.DateFormateUtils;
//import utils.EasyExcelUtil;
//
//import java.io.IOException;
//import java.io.InputStream;
//import java.util.*;
//import java.util.stream.Collectors;
//
//@Slf4j
//@Service
//public class EquipServiceImpl extends ServiceImpl<EquipMapper, Equip> implements EquipService {
//
//
//
//    @Override
//    public boolean importEquips(MultipartFile file) {
//        Map<EasyExcelUtil.DataType, List<EquipTemplate>> allContent = null;
//        try (InputStream inputStream = file.getInputStream()) {
//            allContent = EasyExcelUtil.getExcelAllContent(inputStream, EquipTemplate.class, file.getOriginalFilename(), 1, 1);
//        } catch (IOException e) {
//            System.out.println(e);
//            return false;
//        }
//        List<EquipTemplate> templates = allContent.get(EasyExcelUtil.DataType.VALID);
//        importExecutor.execute(templates);
//        return true;
//    }
//
//
//
//}
